package group6renderer.renderernode;

import group6renderer.Display;
import group6renderer.Visitor;

public class ListIndexNode  extends TreeNode {
    
	int index=0;
    
    
    public ListIndexNode(String name)
    {
    	this.name=name;
    }
    @Override
    public boolean isLeaf()
    {
	return false;
    }

    @Override
    public boolean hasClosing()
    {
    	return true;
    }

    public void setIndex(int num)
    {
    	index=num;
    }


	public void accept(Visitor theVisitor) {
		//theVisitor.visit(this);
	} 
    
    public void drawNode(Display disp)
    {
    	
    }
    
    public TreeNode copy()
    {
	return new ListIndexNode(name);
    }
    
    
}
